package com.springsecurity.demo.vo;

/**
 * @author : yj
 * @className : ApplicationUserPermission
 * @creat : 2020-08-15 15:56
 * @desc : TODO 用户 允许可操作项 (功能)
 */
public enum ApplicationUserPermission {
    // 学生-读 操作
    STUDENT_READ("student:read"),
    // 学生-写 操作
    STUDENT_WRITE("student:write"),
    // 课程-读 操作
    COURSE_READ("course:read"),
    // 课程-写 操作
    COURSE_WRITE("course:write");

    private final String permission;

    ApplicationUserPermission(String permission) {
        this.permission = permission;
    }

    public String getPermission() {
        return permission;
    }
}
